Just to mark this answer closed. I needed to initialise the popover using the following code...
Up vote -1 down vote favorite share g+ share fb share tw.
I'm still working my way around the iOS SDK and I have another probably easy one for you. I'm getting the following error when attempting to present a popover: CoreAnimation: ignoring exception: -UIPopoverController initWithContentViewController: must not be called with nil. I thought I had put in code to deal with this, although apparently not.
Anyway, code is below. Any thoughts on this would be great. Cheers!
If(popoverController == nil) { NSLog(@"is nil"); popoverController = UIPopoverController alloc initWithContentViewController:popoverDownload; } popoverController. Delegate = self; popoverController presentPopoverFromRect:CGRectMake(0,0,400,200) inView:self. View permittedArrowDirections:UIPopoverArrowDirectionUp animated:YES; UPDATE I guess I'm not initialising popoverDownload correctly/at all.
In my . H file PopoverDownloadViewController *popoverDownload; @property (nonatomic,retain) PopoverDownloadViewController *popoverDownload; UPDATE WITH ANSWER And it was as easy as... PopoverDownloadViewController *popoverDownload = PopoverDownloadViewController alloc init; objective-c ipad error-message uipopovercontroller link|improve this question edited Aug 16 '11 at 9:57 asked Aug 16 '11 at 9:35rich1037 79% accept rate.
Apparently this is nil... – omz Aug 16 '11 at 9:44 I have just updated the question with a bit more info. Though I'm guessing i'm not initialising popoverDownload correctly. – rich Aug 16 '11 at 9:51 Okay, so that's the declaration, but where do you actually create it?
– omz Aug 16 '11 at 9:53 Ah, duh! You are right... I have done it now. Shall update the code to show.
I guess that's what I get for being not very well and not having drank any coffee yet today! Cheers for the hints! – rich Aug 16 '11 at 9:56.
Just to mark this answer closed. I needed to initialise the popover using the following code... PopoverDownloadViewController *popoverDownload = PopoverDownloadViewController alloc init; Thanks to omz for the hints in the right direction.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.